<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:79:"F:\phpStudy\PHPTutorial\WWW\tp5\public/../application/index\view\index\add.html";i:1539228786;}*/ ?>
﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>发表问题</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" href="/static/index/layui/css/layui.css">
    <link rel="stylesheet" href="/static/index/css/global.css">
    <script src="/static/index/layui/layui.js"></script>
</head>
<body>
    <iframe  src="../head" scrolling="no" width="100%" height="65px" ></iframe>

    <div class="main layui-clear">
        <div class="fly-panel" pad20>
            <h2 class="page-title">发表问题</h2>

            <div class="layui-form layui-form-pane">
                <form action="../doadd" class="layui-form" method="post">

                    <!--标题框-->
                    <div class="layui-form-item">
                        <label for="L_title" class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" id="L_title" name="title" required lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <!--分类框-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">问题分类选择</label>
                        <div class="layui-input-block">
                            <select name="cate" lay-verify="required">
                                <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ct): $mod = ($i % 2 );++$i;?>
                                <option value="<?php echo $ct['zz_cate_id']; ?>"><?php echo $ct['zz_cate_name']; ?></option>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>
                        </div>
                    </div>


                    <!--描述框-->
                    <div class="layui-form-item layui-form-text">
                        <div class="layui-input-block">
                            <div class="editor">
                                <textarea id="content" name="content" style="width:1040px;height:450px;visibility:hidden;"></textarea>
                            </div>
                        </div>
                        <label for="L_content" class="layui-form-label" style="top: -2px;">描述</label>
                    </div>

                    <!--悬赏框-->
                    <div class="layui-form-item">
                        <label for="L_title" class="layui-form-label">悬赏</label>
                        <div class="layui-input-block">
                            <input type="number"  name="reward" required lay-verify="required" autocomplete="off" class="layui-input" value="0">
                        </div>
                    </div>

                    <!--立即发布按钮-->
                    <div class="layui-form-item">
                        <button class="layui-btn" lay-filter="*" lay-submit>立即发布</button>
                    </div>

                </form>
            </div>
        </div>
    </div>

    <script type="text/javascript" charset="utf-8" src="/static/index/js/kindeditor.js"></script>
    <script type="text/javascript" charset="utf-8" src="/static/index/js/add/add.js"></script>
</body>
</html>